-
Notifications
You must be signed in to change notification settings - Fork 9
Separate to multiple packages wokwi-client-js and wokwi-cli
#35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Introduced a new package, wokwi-client-js, to encapsulate API client functionality and transport mechanisms. - Updated wokwi-cli to utilize the new wokwi-client-js for API interactions, improving modularity and maintainability. - Refactored various components in wokwi-cli to support the new client structure, including changes to file uploads and command handling. - Enhanced error handling and connection management in the WebSocket transport layer. - Added new bundling script for the CLI and improved project structure for better organization. - Updated package.json and lock files to reflect new dependencies and scripts.
- Introduced Playwright for end-to-end testing, including new test scripts and configurations. - Updated .gitignore to exclude Playwright reports and test results. - Enhanced ESLint configuration to ignore Playwright-related files. - Added new scripts in package.json for running Playwright tests. - Created a new Playwright configuration file and integrated it into the TypeScript setup. - Updated GitHub workflows to include Playwright browser installation and testing steps. - Refactored wokwi-cli to improve modularity and maintainability with new transport mechanisms.
- Updated the test command in package.json to include separate scripts for vitest and CLI integration tests. - Added a new script for running CLI integration tests. - Modified GitHub workflows to run tests in a more structured manner. - Removed the obsolete CLI integration test workflow file. - Updated .gitignore to exclude the new test project directory.
|
Thanks! I started reviewing the PR. In the meanwhile, can you please update the "Development" section in the README to use |
|
Also, I see we now need to run |
|
The playwright tests are really nice, thanks for adding them! |
|
Looks like the release.yml workflow is also broken:
Can you please look into this as well? |
…ration test script with TypeScript version
cc432be to
ef83c78
Compare
…rignore, and improve code formatting across multiple files
This pull request makes significant improvements to the Wokwi CLI package by refactoring its internal API client usage, introducing a new WebSocket transport layer, and enhancing the test and build infrastructure. The main themes are: decoupling from internal API client code in favor of the shared
wokwi-client-jspackage, adding robust WebSocket connection management, and improving CI workflows and test coverage.